clear;
load("1.mat")
%data = cellfun(@transpose, data, 'UniformOutput', false);
data_1 = data;
init_1 = [x_0,v_0];
%clear;
load("2.mat")
%data = cellfun(@transpose, data, 'UniformOutput', false);
data_2 = data;
init_2 = [x_0,v_0];
%clear;
load("3.mat")
%data = cellfun(@transpose, data, 'UniformOutput', false);
data_3 = data;
init_3 = [x_0,v_0];
%clear;
load("4.mat")
%data = cellfun(@transpose, data, 'UniformOutput', false);
data_4 = data;
init_4 = [x_0,v_0];
%clear;
data_temp = [data_1;data_2;data_3;data_4];
%init_temp = [init_1;init_2;init_3;init_4];
init = num2cell([init_1;init_2;init_3;init_4]);
cols = size(data_temp,2);
data = [data_temp(:,1),init(:,1:4),data_temp(:,2:cols)];
create_table(data,"constrain.csv");